import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class Platformsort {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  @ApiProperty({ description: '商品分类名称' })
  platformsortName: string;

  @Column({ nullable: true })
  @ApiProperty({ description: '选中图片' })
  activeImg?: string;

  @Column({ nullable: true })
  @ApiProperty({ description: '非选中图片' })
  rAactiveImg?: string;

  @Column({ default: 0 })
  @ApiProperty({ default: 0, description: '商品分类排序' })
  platformsortSort: number;
}
